﻿using System;
using UnityEngine;

// Token: 0x02000006 RID: 6
public class SubMenuBaseEx
{
	// Token: 0x06000010 RID: 16 RVA: 0x00002FE0 File Offset: 0x000011E0
	public static string ChangeTextFromFloat(float value)
	{
		return Mathf.Clamp(Mathf.RoundToInt(value * 100f), LimitConfig.NewMin, LimitConfig.NewMax).ToString();
	}

	// Token: 0x06000011 RID: 17 RVA: 0x00003010 File Offset: 0x00001210
	public static float ChangeFloatFromText(ref string text)
	{
		int num = int.Parse(text);
		num = Mathf.Clamp(num, LimitConfig.NewMin, LimitConfig.NewMax);
		text = num.ToString();
		return (float)num / 100f;
	}
}
